import request from '@/utils/request'

/** 设备报废管理*/
//查看列表
export function scrapList(params) {
    return request({
      url: '/device/scrapEquipmentApplication/list',
      method: 'get',
      params,
    })
  }
//新增报废设备信息
export function scrapAdd(data) {
    return request({
        url: '/device/scrapEquipmentApplication',
        method: 'post',
        data:data,
    })
}
//获取设备信息列表
export function deviceList(params) {
    return request({
        url: '/device/takeStock/listDevice',
        method: 'get',
        params,
    })
}
//获取报废设备信息
export function deviceDes(id) {
    return request({
        url: `/device/scrapEquipmentApplication/${id}`,
        method: 'get',
    })
}
//修改报废设备信息
export function deviceEdit(data) {
    return request({
        url: '/device/scrapEquipmentApplication',
        method: 'put',
        data:data
    })
}
//报废设备列表Excel下载
export function deviceExport(params) {
    return request({
        url: '/device/scrapEquipmentApplication/export',
        method: 'get',
        data: params
    })
}
